<?php


namespace App\Http\Requests\Admin;


use App\Http\Requests\BaseFormRequest;

class SendRegisterCodeFormRequest extends BaseFormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'email' => ['required', 'email'],
            'captcha' => ['required', 'captcha']
        ];
    }


    public function attributes()
    {
        return [
            'email' => '邮箱地址',
            'captcha' => '验证码',
        ];
    }
}